#include"queue.h"
#include<vector>
#include<list>
#include<iostream>
using namespace std;

int main()
{
	My_stl::queue<int, list<int>> q;
	q.push(1);
	q.push(2);
	q.push(3);
	q.push(4);
	while (!q.empty())
	{
		cout << q.front() << " "<< q.back() <<endl;
		q.pop();
	}
}